package com.springvue.springvue.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.springvue.springvue.entity.News;
import com.springvue.springvue.mapper.NewsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NewsSerivce {
    @Autowired
    private NewsMapper newsMapper;
    public List<News> list(){
        return newsMapper.list();
    }


}
